package ws.very.util.http

/**
  * Created by Administrator on 2016-05-02.
  */
object Seg {
  def unapply(path: String): Option[List[String]] = path.split("/").toList.filter { x => x.nonEmpty } match {
    //case "" :: rest => Some(rest) // skip a leading slash
    case all => Some(all)
  }
}